<?php

/**
 * This is the model class for table "language_category".
 */

require_once dirname(__FILE__) . '/base/LanguageCategoryBase.php';
Yii::import('Core.models.Category');
class LanguageCategory extends LanguageCategoryBase
{
    public function relations()
    {
        return array(
            'category' => array(self::BELONGS_TO, 'Category','category_id','joinType'=>'INNER JOIN'),
        );
    }
    
    protected function beforeSave()
    {
        $this->alias = Utility::createAlias($this, $this->title);
        return parent::beforeSave();
    }
}